<template>
  <div>
    <ShowArtical v-model="type" v-if="type == 0"></ShowArtical>
    <EditArtical v-model="type" v-else-if="type == 1 || type == 2"></EditArtical>
  </div>
</template>

<script>
import EditArtical from "@/components/user/artical/EditArtical";
import ShowArtical from "@/components/user/artical/ShowArtical";
export default {
  name: "articalIndex",
  components: { EditArtical, ShowArtical },
  data() {
    return {
      //0：列表,1：添加,2：编辑
      type: 0,
    };
  },
  created() {},
  methods: {},
};
</script>

<style scoped>
</style>